﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Media.Animation;

namespace DiasEngineDate
{
    /// <summary>
    /// SystemInformations.xaml 的交互逻辑
    /// </summary>
    public partial class SystemInformations : Window
    {
                //参数返回结果
        public string TheResult;

        FunctionINC inc = new FunctionINC();

        public SystemInformations()
        {
            InitializeComponent();
            this.Topmost = true;
        }

        public SystemInformations(string _title, string _description)
        {
            InitializeComponent();
            this.info_title.Content = _title;
            this.info_content.Content = _description;       

        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.Topmost = true;
            inc.Loadinglogin(Sys_Infowindow,636,361);
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            TheResult = "OKCancel";
            this.Close();
        }


        //系统信息确定按钮
        private void Label_MouseDown(object sender, RoutedEventArgs e)
        {
            TheResult = "OK";
            this.Close();
        }

        //系统信息取消按钮
        private void Label_MouseDown_cacle(object sender, RoutedEventArgs e)
        {
            TheResult = "OKCancel";
            this.Close();
        }

    }
}
